package com.cookpan001.commands 
{
	import com.cookpan001.App;
	import com.cookpan001.data.AppConst;
	import com.cookpan001.mediators.AppMediator;
	import com.cookpan001.proxies.AppProxy;
	import org.puremvc.as3.interfaces.INotification;
	/**
	 * ...
	 * @author cookpan001
	 */
	public class StartupCommand extends AbstractCommand
	{
		
		public function StartupCommand() 
		{
			
		}
		
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			var app:App = notification.getBody() as App;
			//注册proxy
			facade.registerProxy(new AppProxy());
			//注册mediator
			facade.registerMediator(new AppMediator(app));
			//初始化场景
			this.sendNotification(AppConst.INIT_ROOM);
		}
	}

}